﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admins/AdminMaster.Master" AutoEventWireup="true" CodeFile="~/admins/TourYeuCau.aspx.cs" Inherits="admins_Order_Yeu_Cau" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">

  <asp:Panel ID="pnView" runat="server">
    <div id="search_block"> Tìm kiếm:<asp:TextBox ID="txt_tim_kiem" runat=server></asp:TextBox> 
        <asp:Button ID=btn_tim_kiem runat=server onclick="btn_tim_kiem_Click" Text="Tìm kiếm" />(Nhập tên khách hàng, số điện thoại, email để tìm kiếm)
     
    </div>
    <div class="Control">
      <ul>
       
        <li>
          <asp:LinkButton CssClass="vdelete" ID="lbtDeleteT" runat="server" OnClientClick="javascript:return confirm('Bạn có muốn xóa?');" OnClick="DeleteButton_Click">Xóa</asp:LinkButton>
        </li>
        <li>
          <asp:LinkButton CssClass="vrefresh" ID="lbtRefreshT" runat="server" OnClick="RefreshButton_Click">Làm mới</asp:LinkButton>
        </li>
        <li><a class="vback" href="javascript:void(0);" onClick="window.history.go(-1);">Trở
          lại</a> </li>
      </ul>
    </div>
    <asp:Label ID=lb_messenger runat=server CssClass=lb_messenger></asp:Label>
    <asp:DataGrid ID="grid_order_yeu_cau" runat="server" Width="100%" CssClass="TableView"
            AutoGenerateColumns="False" AllowPaging="True" PagerStyle-Mode="NumericPages"
            PagerStyle-HorizontalAlign="Center" AllowSorting="True" PageSize="20">
      <HeaderStyle CssClass="trHeader"></HeaderStyle>
      <ItemStyle CssClass="trOdd"></ItemStyle>
      <AlternatingItemStyle CssClass="trEven"></AlternatingItemStyle>
      <Columns>
      <asp:TemplateColumn ItemStyle-CssClass="tdCenter">
        <HeaderTemplate>
          <asp:CheckBox ID="chkSelectAll" onClick="check_all(this);" runat="server" AutoPostBack="False"></asp:CheckBox>
        </HeaderTemplate>
        <ItemTemplate>
          <asp:CheckBox ID="chkSelect" runat="server"></asp:CheckBox>
        </ItemTemplate>
        <ItemStyle CssClass="tdCenter"></ItemStyle>
      </asp:TemplateColumn>
      <asp:BoundColumn DataField="order_yeu_cau_id" HeaderText="Id" Visible="False" />
      <asp:BoundColumn DataField="status" HeaderText="Id" Visible="False" />
      <asp:TemplateColumn >
        <HeaderTemplate>Họ tên</HeaderTemplate>
        <ItemTemplate>
          <asp:Label ID="Label1" runat="server" Text='<%# Eval("ho_ten")%>'></asp:Label>
        </ItemTemplate>
      </asp:TemplateColumn>
      <asp:BoundColumn DataField="dia_chi" HeaderText="Địa chỉ" ItemStyle-CssClass="Text"  />
      <asp:BoundColumn DataField="ten_co_quan" HeaderText="Tên Cơ Quan" ItemStyle-CssClass="Text"  />
      <asp:BoundColumn DataField="tinh" HeaderText="Tỉnh" ItemStyle-CssClass="Text" />
      <asp:BoundColumn DataField="so_dien_thoai" HeaderText="Điện thoại" ItemStyle-CssClass="Text"  />
      <asp:TemplateColumn ItemStyle-CssClass=Text HeaderText=Email>
        <ItemTemplate>
             <asp:Label ID="Label3" runat="server" Text='<%# Eval("email")%>'></asp:Label>
        </ItemTemplate>
      </asp:TemplateColumn>
      <asp:BoundColumn DataField="ngay_tao" HeaderText="Ngày tạo" ItemStyle-CssClass=Text></asp:BoundColumn>
      <asp:TemplateColumn HeaderText="Trạng thái" ItemStyle-CssClass=Function>
        <ItemTemplate>
             <asp:Label ID="Label2" runat="server" Text='<%# Eval("status").ToString()=="1"?"Chưa Liên Hệ":"Đã Liên Hệ"%>'></asp:Label>
        </ItemTemplate>
      </asp:TemplateColumn>
      <%-- <asp:TemplateColumn ItemStyle-CssClass="CheckBox">
                    <HeaderTemplate>
                        Kích hoạt</HeaderTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lblStatus" runat="server" Text='<%%>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateColumn>--%>
      <asp:TemplateColumn ItemStyle-CssClass="Function">
        <HeaderTemplate> Chức năng</HeaderTemplate>
        <ItemTemplate>
         <%-- <asp:ImageButton ID="cmdAddSub" runat="server" AlternateText="Thêm cấp con" CommandName="AddSub"
                            CssClass="Add" ToolTip="Thêm cấp con" ImageUrl="/App_Themes/Admin/images/add.png"
                            CommandArgument='<%%>' />--%>
          <asp:ImageButton
                                ID="cmdEdit" runat="server" AlternateText="Sửa" CommandName="Edit" CssClass="Edit"
                                ToolTip="Chi tiết" ImageUrl="/App_Themes/Admin/images/edit.png" CommandArgument='<%# Eval("order_yeu_cau_id")%>' />
          <asp:ImageButton
                                    ID="cmdDelete" runat="server" AlternateText="Xóa" CommandName="Delete" CssClass="Delete"
                                    ToolTip="Xóa" ImageUrl="/App_Themes/Admin/images/delete.png" CommandArgument='<%# Eval("order_yeu_cau_id")%>'
                                    OnClientClick="javascript:return confirm('Bạn có muốn xóa?');" />
         <%-- <asp:ImageButton
                                        ID="cmdActive" runat="server" AlternateText='<%%>'
                                        CommandName="Active" CssClass="Active" ToolTip='<%%>'
                                        ImageUrl='<%%>'
                                        CommandArgument='<%%>' />--%>
        </ItemTemplate>
      </asp:TemplateColumn>
      </Columns>
    </asp:DataGrid>
    <div class="Control">
      <ul>
        <li>
          <asp:LinkButton CssClass="vdelete" ID="lbtDeleteB" runat="server" OnClientClick="javascript:return confirm('Bạn có muốn xóa?');" OnClick="DeleteButton_Click">Xóa</asp:LinkButton>
        </li>
        <li>
          <asp:LinkButton CssClass="vrefresh" ID="lbtRefreshB" runat="server" OnClick="RefreshButton_Click">Làm mới</asp:LinkButton>
        </li>
        <li><a class="vback" href="javascript:void(0);" onClick="window.history.go(-1);">Trở
          lại</a> </li>
      </ul>
    </div>
    </asp:Panel>

    <asp:Panel ID="pnUpdate" runat="server" Visible="False">
    <table class="TableUpdate" border="1">
      <tr>
        <td class="Control" colspan="2"><ul>
            <li>
              <asp:LinkButton CssClass="uupdate" ID="lbtUpdateT" runat="server" OnClick="Update_Click">Ghi lại</asp:LinkButton>
            </li>
            <li>
              <asp:LinkButton CssClass="uback" ID="lbtBackT" runat="server" OnClick="Back_Click"
                                CausesValidation="False">Trở về</asp:LinkButton>
            </li>
          </ul></td>
      </tr>
      <tr>
      <td colspan="2">
       <asp:DataGrid ID="grid_order_yeu_cau1" runat="server" Width="100%" CssClass="TableView"
            AutoGenerateColumns="False" AllowPaging="False">
      <HeaderStyle CssClass="trHeader"></HeaderStyle>
      <ItemStyle CssClass="trOdd"></ItemStyle>
      <AlternatingItemStyle CssClass="trEven"></AlternatingItemStyle>
      <Columns>
      <asp:TemplateColumn ItemStyle-CssClass="tdCenter">
        <HeaderTemplate>
          <asp:CheckBox ID="chkSelectAll" onClick="check_all(this);" runat="server" AutoPostBack="False"></asp:CheckBox>
        </HeaderTemplate>
        <ItemTemplate>
          <asp:CheckBox ID="chkSelect" runat="server"></asp:CheckBox>
        </ItemTemplate>
        <ItemStyle CssClass="tdCenter"></ItemStyle>
      </asp:TemplateColumn>
      <asp:BoundColumn DataField="order_yeu_cau_id" HeaderText="Id" Visible="False" />
      <asp:TemplateColumn >
        <HeaderTemplate>Tên khách hàng</HeaderTemplate>
        <ItemTemplate>
          <asp:Label ID="Label1" runat="server" Text='<%# Eval("ho_ten")%>'></asp:Label>
        </ItemTemplate>
      </asp:TemplateColumn>
      <asp:BoundColumn DataField="loai_hinh_du_lich" HeaderText="Loai Hình Du Lịch" ItemStyle-CssClass="Text"  />
      <asp:BoundColumn DataField="so_nguoi" HeaderText="Số người" ItemStyle-CssClass="Text"  />
      <asp:BoundColumn DataField="dia_diem" HeaderText="Địa điểm muốn đi" ItemStyle-CssClass="Text"  />
      <asp:BoundColumn DataField="thoi_gian" HeaderText="Thời gian" ItemStyle-CssClass="Text"  />
      <asp:BoundColumn DataField="yeu_cau" HeaderText="Yêu Cầu" ItemStyle-CssClass="Text"  />         
      </Columns>
    </asp:DataGrid>
        <tr class=trOdd>
        <td class=Function style="text-align:right">Đã liên hệ</td>
        <td class=Function style="text-align:right; width:200px" ><asp:CheckBox ID=ck_lien_he runat=server /> </td>

    </tr>
        </td>
        </tr>
            <tr>
        <td class="Control" colspan="2"><ul>
            <li>
              <asp:LinkButton CssClass="uupdate" ID="LinkButton1" runat="server" OnClick="Update_Click">Ghi lại</asp:LinkButton>
            </li>
            <li>
              <asp:LinkButton CssClass="uback" ID="LinkButton2" runat="server" OnClick="Back_Click"
                                CausesValidation="False">Trở về</asp:LinkButton>
            </li>
          </ul></td>
      </tr>
    </asp:Panel>
</asp:Content>

